package com.laundry.laundry.execption;

import lombok.Getter;

/**
 * 业务异常
 */
@Getter
public class BaseException extends RuntimeException {

    private int code;
    public BaseException() {
    }

    public BaseException(String msg, int code) {
        super(msg);
        this.code = code;
    }

    public BaseException(String msg, int code, Throwable cause) {
        super(msg, cause);
        this.code = code;
    }

    public BaseException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

}
